<html>
<head>
	<script>
		common.setMainTitle('Change password of ' + '<?= $this->username ?>');
    </script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body style="background-color: transparent">
<form name="frm" id="mainform" method="post" action="/admin/users/save">
    <input type="hidden" name="USERID" value="<?=$this->id ?>" />
    <table>
       
        <tr>
            <td nowrap="nowrap">New Password</td>
            <td><input class="" id="PASSWORD" name ="PASSWORD" type ="password" size ="50" maxlength="75">
            </td>
        </tr>
        <tr>
            <td nowrap="nowrap">Confirm Password<font color="red">*</font></td>
            <td><input class="" id="CONFIRM" name ="CONFIRM" type ="password" size ="50" maxlength="75">
            </td>
        </tr>
		
        <tr>
			<td>
				<input type="button" id='saveBtn' value="Save" />
				<input type="button" value="Cancel" onclick="javascript:history.go(-1)" />
			</td>
        </tr>        
    </table>
</form>
<script>
	$(document).ready(function(){
		$('#saveBtn').click(function(){
			var newpass = $('#PASSWORD').val();
			var confirm = $('#CONFIRM').val();
			
			if(newpass == confirm){
				alert('aaaaaaa');
				$('#mainform').submit();
			} else {
				alert('Please confirm correctly your password!!!');
			}
		});
	});
</script>
</body>
</html>